<?php $this->render("theader.php");?>
<?php if ($this->plan == ''){?>
<input type="hidden" name="gourl" id="gourl" value="<?php echo htmlspecialchars($this->fullUrl . '/' . $this->minfo['domain'] . '?a=reg');?>"/>
<input type="hidden" name="m_name" id="m_name" value="<?php echo $this->minfo['name'];?>"/>
<div class="main_box">   
    
    <div class="w_986 plate_986">
        <div class="plate_986_bg top_bg"></div>
        <div class="plate_986_bg mid_bg">
            <div class="f_l register_l">
            	<h2 class="h2_title"><span class="c_gray9 span_font f_r">如果您已注册过，请从网页右侧直接登录。</span>注册会议平台统一身份认证 <span class="c_gray9 span_font">( <span class="c_red">*</span> 为必填项 )</span></h2>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="register_table">
                  <tr>
                    <th><span class="c_red">*</span> E-mail：</th>
                    <td><input name="email" id="email" value="<?php if ($_SESSION['iemail'])echo $_SESSION['iemail'];?>" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 密码：</th>
                    <td><input name="password" id="password" value="<?php if ($this->debug)echo "debug";?>" size="40" type="password" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 确认密码：</th>
                    <td><input name="password2" id="password2" value="<?php if ($this->debug)echo "debug";?>" size="40" type="password" class="input_style" /></td>
                  </tr>
                  <tr>
                  	<th style="height:18px;"></th>
                    <td style="height:18px;"><span class="c_gray9 f12">请记住注册邮箱及密码，以便再次登录</span></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 英文姓：</th>
                    <td><input name="enfname" id="enfname" value="<?php if ($this->debug)echo "debug";?>" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 英文名：</th>
                    <td><input name="enlname" id="enlname" value="<?php if ($this->debug)echo "debug";?>" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 中文姓名：</th>
                    <td><input name="name" id="name" size="40" value="<?php if ($this->debug)echo "测试{$tt}";?>" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 性别：</th>
                    <td>
                    	<select name="gender" id="gender">
                    	  <option value="1">男</option>
                    	  <option value="2">女</option>
                        </select>
                    </td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 国家或地区：</th>
                    <td>
                    	<select name="nation" id="nation">
                    	<?php if (!empty($this->dnation)){
                    	echo "<option value=\"{$this->dnation}\">{$this->dnation}</option>";
                    	}?>
<?php foreach($this->nations as $v){echo <<<EOT
<option value="{$v}">{$v}</option>
EOT;
}?>
                        </select>
                    </td>
                  </tr>
                  <tr>
                    <th>出生日期：</th>
                    <td><input name="birth" id="birth" value="<?php if ($this->debug)echo "1980-12-12";?>" size="20" type="text" class="input_style f_l" style="margin-right:5px;"/></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 身份证/护照号码：</th>
                    <td><input name="idcode" id="idcode" size="40" type="text" value="<?php if ($this->debug)echo "idcode_{$tt}";?>" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 工作单位（中文名称）：</th>
                    <td><input name="unit" id="unit" size="40" type="text" value="<?php if ($this->debug)echo "单位_{$tt}";?>" class="input_style" /></td>
                  </tr>
                  
                  <tr>
                    <th>工作单位（英文名称）：</th>
                    <td><input name="cnunit" id="cnunit" size="40" type="text" value="" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 职务（中文名称）：</th>
                    <td><input name="headphoto" id="headphoto" size="40" type="text" value="" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th>职务（英文名称）：</th>
                    <td><input name="idphoto" id="idphoto" size="40" type="text" value="" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 联系电话：</th>
                    <td><input name="phone" id="phone" size="40" type="text" value="<?php if ($this->debug)echo "phone{$tt}";?>" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th>传真：</th>
                    <td><input name="fax" id="fax" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 联系地址：</th>
                    <td><input name="address" id="address" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> 邮政编码：</th>
                    <td><input name="pcode" id="pcode" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th></th>
                    <td><input name="btn_reg" id="btn_reg" type="button" value="注 册" class="btn_blue30 line_bg_all" /></td>
                  </tr>
                </table>

            </div>
            <div class="f_r register_r plate" >
            	<h2 class="h2_title">登录</h2>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="login_table">
                  <tr>
                    <th>E-mail：</th>
                    <td><input name="login_email" id="login_email" size="25" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th>密码：</th>
                    <td><input name="login_password" id="login_password" size="25" type="password" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th>验证码：</th>
                    <td>
                    	<input name="authcode" id="authcode" size="8" type="text" class="input_style f_l" />
                        <span class="f_l login_chick_code"><a href="javascript:void(0)" onclick='javascript:return getCode();' title="点击换图片"><img id="u_authcode" src="<?php echo $this->url($this->baseUrl, 'index','authcode', 't='.time()); ?>" alt="点击换图片" width="80" height="30" /></a></span>
                    </td>
                  </tr>
                  <tr class="tr_h20">
                  	<th></th>
                    <td></td>
                  </tr>
                  <tr>
                    <th></th>
                    <td><input id='btn_login' type="button" value="登  录" class="btn_blue30 line_bg_all" />&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" id="btn_find" target="_self">忘记密码？</a></td>
                  </tr>
                </table>
                
            </div>
            <div class="clear"></div>
        </div>
        <div class="plate_986_bg bot_bg"></div>
    </div>
    
    <div class="clear"></div>
</div>

<?php $GLOBALS['nomanage'] = true;$this->render("footer.php");?>

<script>
var currentMid = <?php echo $this->minfo['mid'];?>;
var baseUrl = "<?php echo $this->baseUrl;?>";
function getCode () {
	$('#u_authcode').attr('src','<?php echo $this->url($this->baseUrl, "index", "authcode","r=1")?>'+Math.random());
	return false;
}

</script>
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui/jquery.ui.core.min.js"></script>
<script type="text/javascript" src="js/jquery-ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="js/jquery-ui/jquery.ui.datepicker.min.js"></script>
<script type="text/javascript" src="js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="js/user_reg.js"></script>
</body>
</html>



<?php }else{?>
<input type="hidden" name="gourl" id="gourl" value="<?php echo htmlspecialchars($this->fullUrl . '/' . $this->minfo['domain'] . '?a=reg');?>"/>
<input type="hidden" name="m_name" id="m_name" value="<?php echo $this->minfo['enname'];?>"/>
<div class="main_box">   
    
    <div class="w_986 plate_986">
        <div class="plate_986_bg top_bg"></div>
        <div class="plate_986_bg mid_bg">
            <div class="f_l register_l">
            	<h2 class="h2_title"><span class="c_gray6 span_font f_r"></span>Register Unified Identity of Conference Platform <span class="c_gray6 span_font">( <span class="c_red">*</span> is required. )</span></h2>
            	<h2 class="h2_title"><span class="c_gray9 span_font f_r">If you have registered  before, please log in directly at the right side of the page.</span></h2>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="register_table">
                  <tr>
                    <th><span class="c_red">*</span> E-mail：</th>
                    <td><input name="email" id="email" value="<?php if ($_SESSION['iemail'])echo $_SESSION['iemail'];?>" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> Password：</th>
                    <td><input name="password" id="password" value="<?php if ($this->debug)echo "debug";?>" size="40" type="password" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> Confirm Password：</th>
                    <td><input name="password2" id="password2" value="<?php if ($this->debug)echo "debug";?>" size="40" type="password" class="input_style" /></td>
                  </tr>
                  <tr>
                  	<th style="height:18px;"></th>
                    <td style="height:18px;word-wrap: break-word;word-break: normal; "><span class="c_gray9 f12">Please keep in mind the email address and the password for re-entry into the system.</span></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> Family Name：</th>
                    <td><input name="enfname" id="enfname" value="<?php if ($this->debug)echo "debug";?>" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> Given Name：</th>
                    <td><input name="enlname" id="enlname" value="<?php if ($this->debug)echo "debug";?>" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th nowrap="nowrap"><span class="c_red">*</span> Full Name：</th>
                    <td><input name="name" id="name" size="40" value="<?php if ($this->debug)echo "测试{$tt}";?>" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> Gender：</th>
                    <td>
                    	<select name="gender" id="gender">
                    	  <option value="1">Male</option>
                    	  <option value="2">Female</option>
                        </select>
                    </td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> Country/Region：</th>
                    <td>
                    	<select name="nation" id="nation">
                    	<?php if (!empty($this->dennation)){
                    	echo "<option value=\"{$this->dennation}\">{$this->dennation}</option>";
                    	}?>
<?php foreach($this->nations as $v){echo <<<EOT
<option value="{$v}">{$v}</option>
EOT;
}?>
                        </select>
                    </td>
                  </tr>
                  <tr>
                    <th>Date of Birth：</th>
                    <td><input name="birth" id="birth" value="<?php if ($this->debug)echo "1980-12-12";?>" size="20" type="text" class="input_style f_l" style="margin-right:5px;"/></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> Passport No.：</th>
                    <td><input name="idcode" id="idcode" size="40" type="text" value="<?php if ($this->debug)echo "idcode_{$tt}";?>" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> Affiliation：</th>
                    <td><input name="cnunit" id="cnunit" size="40" type="text" value="<?php if ($this->debug)echo "单位_{$tt}";?>" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> Position：</th>
                    <td><input name="idphoto" id="idphoto" size="40" type="text" value="" class="input_style" /></td>
                  </tr>
                  
                  <tr>
                    <th><span class="c_red">*</span> Telephone：</th>
                    <td><input name="phone" id="phone" size="40" type="text" value="<?php if ($this->debug)echo "phone{$tt}";?>" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th>Fax：</th>
                    <td><input name="fax" id="fax" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> Mailing Address：</th>
                    <td><input name="address" id="address" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th><span class="c_red">*</span> Zip Code：</th>
                    <td><input name="pcode" id="pcode" size="40" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th></th>
                    <td><input name="btn_reg" id="btn_reg" type="button" value="Submit" class="btn_blue30 line_bg_all" /></td>
                  </tr>
                </table>

            </div>
            <div class="f_r register_r plate" >
            	<h2 class="h2_title">Login</h2>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="login_table">
                  <tr>
                    <th>E-mail：</th>
                    <td><input name="login_email" id="login_email" size="25" type="text" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th>Password：</th>
                    <td><input name="login_password" id="login_password" size="25" type="password" class="input_style" /></td>
                  </tr>
                  <tr>
                    <th>Verification Code：</th>
                    <td>
                    	<input name="authcode" id="authcode" size="8" type="text" class="input_style f_l" />
                        <span class="f_l login_chick_code"><a href="javascript:void(0)" onclick='javascript:return getCode();' title="Click change picture"><img id="u_authcode" src="<?php echo $this->url($this->baseUrl, 'index','authcode', 't='.time()); ?>" alt="Click change picture" width="80" height="30" /></a></span>
                    </td>
                  </tr>
                  <tr class="tr_h20">
                  	<th></th>
                    <td></td>
                  </tr>
                  <tr>
                    <th></th>
                    <td><input id='btn_login' type="button" value="Login" class="btn_blue30 line_bg_all" />&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" id="btn_find" target="_self">Forget password？</a></td>
                  </tr>
                </table>
                
            </div>
            <div class="clear"></div>
        </div>
        <div class="plate_986_bg bot_bg"></div>
    </div>
    
    <div class="clear"></div>
</div>

<?php $GLOBALS['nomanage'] = true;$this->render("footer.php");?>


<script>
var baseUrl = "<?php echo $this->baseUrl;?>";
var currentMid = <?php echo $this->minfo['mid'];?>;
function getCode () {
	$('#u_authcode').attr('src','<?php echo $this->url($this->baseUrl, "index", "authcode","r=1")?>'+Math.random());
	return false;
}

</script>
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui/jquery.ui.core.min.js"></script>
<script type="text/javascript" src="js/jquery-ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="js/jquery-ui/jquery.ui.datepicker.min.js"></script>
<script type="text/javascript" src="js/jquery-ui/jquery.ui.datepicker-en-GB.js"></script>
<script type="text/javascript" src="js/user_reg.js"></script>
</body>
</html>
<?php }?>
